﻿using Foundation.Spider;

namespace Dyao.Book.Application.Abstractions
{
    public interface IQiDianBookSpider : ISipder
    {
        /// <summary>
        /// 获取书籍
        /// </summary>
        /// <returns></returns>
        Task GetBooksAsync(CancellationToken cancellationToken);

        /// <summary>
        /// 根据指定页签获取
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        Task<int> GetBooksByPageAsync(int page, CancellationToken cancellationToken);
    }
}
